package com.crm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.crm.domain.Clue;
import com.crm.dto.SalesStatisticDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface ClueMapper extends BaseMapper<Clue>{


    //根据用户id查线索总数
    @Select("select COUNT(*) from clue where user_id =#{userId} ")
    int countClueByUserId(@Param("userId")Long userId);
}
